package cn.aspart.security.demo;

import org.springframework.security.crypto.bcrypt.BCrypt;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class CryptDemo {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        System.out.println(encoder.encode("Gx@g2025A!"));
        System.out.println(encoder.encode(encoder.encode("Gx@g2025A!")));
        System.out.println(BCrypt.gensalt());
    }
}
